package fr.castorflex.CshopFlex.Listeners;

import fr.castorflex.CshopFlex.Utilities.Parameters;
import android.content.DialogInterface;
import android.content.DialogInterface.OnCancelListener;
import android.os.Handler;
import android.os.Message;

public class MyCancelListener implements OnCancelListener{

	private Handler handler;
	
	public MyCancelListener(Handler h)
	{
		handler = h;
	}
	
	@Override
	public void onCancel(DialogInterface dialog) {
		Message m = handler.obtainMessage();
		m.what = Parameters.CANCEL_RESEARCH;
		handler.sendMessage(m);
		
	}

}
